Integrand size = 24, antiderivative size = 173 \[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=\frac {\sqrt {a x^2+b x^3+c x^4}}{x}-\frac {\sqrt {a} x \sqrt {a+b x+c x^2} \text {arctanh}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{\sqrt {a x^2+b x^3+c x^4}}+\frac {b x \sqrt {a+b x+c x^2} \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} \sqrt {a x^2+b x^3+c x^4}} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 173, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {1935, 1947, 857, 635, 212, 738} \[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=-\frac {\sqrt {a} x \sqrt {a+b x+c x^2} \text {arctanh}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{\sqrt {a x^2+b x^3+c x^4}}+\frac {b x \sqrt {a+b x+c x^2} \text {arctanh}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} \sqrt {a x^2+b x^3+c x^4}}+\frac {\sqrt {a x^2+b x^3+c x^4}}{x} \]
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 857
Rule 1935
Rule 1947
Rubi steps \begin{align*} \text {integral}& = \frac {\sqrt {a x^2+b x^3+c x^4}}{x}+\frac {1}{2} \int \frac {2 a+b x}{\sqrt {a x^2+b x^3+c x^4}} \, dx \\ & = \frac {\sqrt {a x^2+b x^3+c x^4}}{x}+\frac {\left (x \sqrt {a+b x+c x^2}\right ) \int \frac {2 a+b x}{x \sqrt {a+b x+c x^2}} \, dx}{2 \sqrt {a x^2+b x^3+c x^4}} \\ & = \frac {\sqrt {a x^2+b x^3+c x^4}}{x}+\frac {\left (a x \sqrt {a+b x+c x^2}\right ) \int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx}{\sqrt {a x^2+b x^3+c x^4}}+\frac {\left (b x \sqrt {a+b x+c x^2}\right ) \int \frac {1}{\sqrt {a+b x+c x^2}} \, dx}{2 \sqrt {a x^2+b x^3+c x^4}} \\ & = \frac {\sqrt {a x^2+b x^3+c x^4}}{x}-\frac {\left (2 a x \sqrt {a+b x+c x^2}\right ) \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b x}{\sqrt {a+b x+c x^2}}\right )}{\sqrt {a x^2+b x^3+c x^4}}+\frac {\left (b x \sqrt {a+b x+c x^2}\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x}{\sqrt {a+b x+c x^2}}\right )}{\sqrt {a x^2+b x^3+c x^4}} \\ & = \frac {\sqrt {a x^2+b x^3+c x^4}}{x}-\frac {\sqrt {a} x \sqrt {a+b x+c x^2} \tanh ^{-1}\left (\frac {2 a+b x}{2 \sqrt {a} \sqrt {a+b x+c x^2}}\right )}{\sqrt {a x^2+b x^3+c x^4}}+\frac {b x \sqrt {a+b x+c x^2} \tanh ^{-1}\left (\frac {b+2 c x}{2 \sqrt {c} \sqrt {a+b x+c x^2}}\right )}{2 \sqrt {c} \sqrt {a x^2+b x^3+c x^4}} \\ \end{align*}
Time = 0.19 (sec) , antiderivative size = 133, normalized size of antiderivative = 0.77 \[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=\frac {x \sqrt {a+x (b+c x)} \left (2 \sqrt {c} \sqrt {a+x (b+c x)}+4 \sqrt {a} \sqrt {c} \text {arctanh}\left (\frac {\sqrt {c} x-\sqrt {a+x (b+c x)}}{\sqrt {a}}\right )-b \log \left (b+2 c x-2 \sqrt {c} \sqrt {a+x (b+c x)}\right )\right )}{2 \sqrt {c} \sqrt {x^2 (a+x (b+c x))}} \]
[In]
[Out]
Time = 0.14 (sec) , antiderivative size = 95, normalized size of antiderivative = 0.55
method | result | size |
pseudoelliptic | \(\frac {-2 \left (-\ln \left (2\right )+\ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x \sqrt {a}}\right )\right ) \sqrt {c}\, \sqrt {a}+\ln \left (2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {c}+2 c x +b \right ) b +2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {c}}{2 \sqrt {c}}\) | \(95\) |
default | \(-\frac {\sqrt {c \,x^{4}+b \,x^{3}+a \,x^{2}}\, \left (2 \sqrt {a}\, \ln \left (\frac {2 a +b x +2 \sqrt {a}\, \sqrt {c \,x^{2}+b x +a}}{x}\right ) \sqrt {c}-b \ln \left (\frac {2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {c}+2 c x +b}{2 \sqrt {c}}\right )-2 \sqrt {c \,x^{2}+b x +a}\, \sqrt {c}\right )}{2 x \sqrt {c \,x^{2}+b x +a}\, \sqrt {c}}\) | \(126\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 638, normalized size of antiderivative = 3.69 \[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=\left [\frac {b \sqrt {c} x \log \left (-\frac {8 \, c^{2} x^{3} + 8 \, b c x^{2} + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c x + b\right )} \sqrt {c} + {\left (b^{2} + 4 \, a c\right )} x}{x}\right ) + 2 \, \sqrt {a} c x \log \left (-\frac {8 \, a b x^{2} + {\left (b^{2} + 4 \, a c\right )} x^{3} + 8 \, a^{2} x - 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {a}}{x^{3}}\right ) + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} c}{4 \, c x}, -\frac {b \sqrt {-c} x \arctan \left (\frac {\sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{3} + b c x^{2} + a c x\right )}}\right ) - \sqrt {a} c x \log \left (-\frac {8 \, a b x^{2} + {\left (b^{2} + 4 \, a c\right )} x^{3} + 8 \, a^{2} x - 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {a}}{x^{3}}\right ) - 2 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} c}{2 \, c x}, \frac {4 \, \sqrt {-a} c x \arctan \left (\frac {\sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{3} + a b x^{2} + a^{2} x\right )}}\right ) + b \sqrt {c} x \log \left (-\frac {8 \, c^{2} x^{3} + 8 \, b c x^{2} + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c x + b\right )} \sqrt {c} + {\left (b^{2} + 4 \, a c\right )} x}{x}\right ) + 4 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} c}{4 \, c x}, \frac {2 \, \sqrt {-a} c x \arctan \left (\frac {\sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (b x + 2 \, a\right )} \sqrt {-a}}{2 \, {\left (a c x^{3} + a b x^{2} + a^{2} x\right )}}\right ) - b \sqrt {-c} x \arctan \left (\frac {\sqrt {c x^{4} + b x^{3} + a x^{2}} {\left (2 \, c x + b\right )} \sqrt {-c}}{2 \, {\left (c^{2} x^{3} + b c x^{2} + a c x\right )}}\right ) + 2 \, \sqrt {c x^{4} + b x^{3} + a x^{2}} c}{2 \, c x}\right ] \]
[In]
[Out]
\[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=\int \frac {\sqrt {x^{2} \left (a + b x + c x^{2}\right )}}{x^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=\int { \frac {\sqrt {c x^{4} + b x^{3} + a x^{2}}}{x^{2}} \,d x } \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {a x^2+b x^3+c x^4}}{x^2} \, dx=\int \frac {\sqrt {c\,x^4+b\,x^3+a\,x^2}}{x^2} \,d x \]
[In]
[Out]